package com.cebbank.yyi.springbootapp.jingtang.json;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description:
 * @author: yyi
 * @date: 2024/8/23 11:01
 * @version: 1.0
 * 获取文件类型
 * 获取文件类型列表
 *
 * http://wdgl.sgjtsteel.com:8081/admin/menu?type=left&parentId=93963
 **/

@NoArgsConstructor
@Data
public class GetFilteType {

    @JsonProperty("code")
    private Integer code;
    @JsonProperty("msg")
    private Object msg;
    @JsonProperty("data")
    private List<DataDTO> data;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("parentId")
        private Integer parentId;
        @JsonProperty("children")
        private List<?> children;
        @JsonProperty("user")
        private Boolean user;
        @JsonProperty("type")
        private String type;
        @JsonProperty("hasLeftChildren")
        private Boolean hasLeftChildren;
        @JsonProperty("icon")
        private String icon;
        @JsonProperty("name")
        private String name;
        @JsonProperty("spread")
        private Boolean spread;
        @JsonProperty("path")
        private String path;
        @JsonProperty("keepAlive")
        private String keepAlive;
        @JsonProperty("singlePage")
        private String singlePage;
        @JsonProperty("metaName")
        private String metaName;
        @JsonProperty("permission")
        private Object permission;
        @JsonProperty("label")
        private String label;
        @JsonProperty("sort")
        private Integer sort;
        @JsonProperty("menuType")
        private Integer menuType;
        @JsonProperty("hasChildren")
        private Object hasChildren;
    }
}
